package com.example.book_shop_java.dao;

import com.example.book_shop_java.bean.WxUser;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface WxUserDao {
    public int wxRegiest(@Param("wx_username") String wx_username, @Param("wx_password") String wx_password, @Param("wx_phone") String wx_phone, @Param("wx_avatar") String wx_avatar, @Param("wx_nickname") String wx_nickname);
    public int getUsername(@Param("wx_username") String wx_username);
    public int wxLogin(@Param("wx_username") String wx_username, @Param("wx_password") String wx_password);
    public List<WxUser> getLoginUser(@Param("wx_username") String wx_username, @Param("wx_password") String wx_password);
    public List<WxUser> getAllWxUser(@Param("wx_username") String wx_username);
    public int resetPassword(int wx_userid);
}
